package com.blog.controller;

import com.blog.dto.Result;
import com.blog.service.EsArticleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@Slf4j
@RequestMapping("/public/articlesearch")
public class EsArticleController {
    @Resource
    private EsArticleService esArticleService;

    @GetMapping("/articledetail/{keyword}")
    public Result ArticleSearchBykeyword(@PathVariable String keyword) {
//        esArticleService.articlesearchbykeyword(keyword);
        return Result.ok();
    }

    @GetMapping("/suggestkeywords/{keyword}")
    public Result SuggestKeywords(@PathVariable String keyword) {
//        return Result.ok(esArticleService.getsuggestkeywords(keyword));
        return Result.ok();
    }

}
